package com.zigong.app.beans;

import com.ruihang.generalibrary.utils.IShares;
import com.ruihang.generalibrary.utils.UrlUtils;
import com.zigong.app.application.Constances;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2017/8/17 0017.
 */

public class FOrganDetail implements Serializable, IShares {
    private static final long serialVersionUID = 2303288013526119412L;
    private List<NewsItem> dynamicList;
    private String hotLevel;
    private String institutionId;
    private String institutionImage;
    private String institutionName;
    private boolean isSubscibe;
    private String institutionUrl;
    private String sharedUrl;
    private int pageAll;
    private int pageIndex;

    public List<NewsItem> getDynamicList() {
        return dynamicList;
    }

    public FOrganDetail setDynamicList(List<NewsItem> dynamicList) {
        this.dynamicList = dynamicList;
        return this;
    }

    public String getHotLevel() {
        return hotLevel;
    }

    public FOrganDetail setHotLevel(String hotLevel) {
        this.hotLevel = hotLevel;
        return this;
    }

    public String getInstitutionId() {
        return institutionId;
    }

    public FOrganDetail setInstitutionId(String institutionId) {
        this.institutionId = institutionId;
        return this;
    }

    public String getInstitutionImage() {
        return institutionImage;
    }

    public FOrganDetail setInstitutionImage(String institutionImage) {
        this.institutionImage = institutionImage;
        return this;
    }

    public String getInstitutionName() {
        return institutionName;
    }

    public FOrganDetail setInstitutionName(String institutionName) {
        this.institutionName = institutionName;
        return this;
    }

    public boolean isSubscibe() {
        return isSubscibe;
    }

    public FOrganDetail setSubscibe(boolean subscibe) {
        isSubscibe = subscibe;
        return this;
    }

    public String getInstitutionUrl() {
        return institutionUrl;
    }

    public FOrganDetail setInstitutionUrl(String institutionUrl) {
        this.institutionUrl = institutionUrl;
        return this;
    }

    public String getSharedUrl() {
        return sharedUrl;
    }

    public FOrganDetail setSharedUrl(String sharedUrl) {
        this.sharedUrl = sharedUrl;
        return this;
    }

    public int getPageAll() {
        return pageAll;
    }

    public FOrganDetail setPageAll(int pageAll) {
        this.pageAll = pageAll;
        return this;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public FOrganDetail setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
        return this;
    }

    @Override
    public String toString() {
        return "FOrganDetail{" +
                "dynamicList=" + dynamicList +
                ", hotLevel='" + hotLevel + '\'' +
                ", institutionId='" + institutionId + '\'' +
                ", institutionImage='" + institutionImage + '\'' +
                ", institutionName='" + institutionName + '\'' +
                ", isSubscibe=" + isSubscibe +
                ", institutionUrl='" + institutionUrl + '\'' +
                ", sharedUrl='" + sharedUrl + '\'' +
                ", pageAll=" + pageAll +
                ", pageIndex=" + pageIndex +
                '}';
    }

    @Override
    public String getShareTitle() {
        return institutionName;
    }

    @Override
    public String getShareH5() {
        return null;
    }

    @Override
    public String getShareImage() {
        return institutionImage;
    }

    @Override
    public String getShareDigest() {
        return null;
    }

    @Override
    public String getShareURL() {
        return UrlUtils.linkUrls(Constances.ST_BASE_URL, sharedUrl);
    }
}
